Fix an issue where a mesh could be imported without a name.

This fixes issues #86.