Fixes a NULL pointer dereferencing when the filename passed to tmx_load contains no dot