Do not allow invalid data in tilemap loading

this ensures that input data is actually a number before pushing it to the map, not only to warn the user, but previously the map sizes would be wrongly set if there were commas at the end or xml at the start,
hope its good enough:),
Nico