Don't ICE on bad extern paths

Closes #17990