server-mode: Do not crash when running into INTERFACE_LIBRARY

Closes: #16539
1 job for mr-do-not-crash-on-interface-lib
Status Name Job ID Coverage
  External
passed kwrobot-branch-check