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

Closes #5425
auto merge of #8976 : alexcrichton/rust/issue-5425, r=pnkfelix

Closes #5425