Don't die with an ICE on a blank library name

Closes #5425