Add better error checking when importing invalid TMX files