fixes an issue where tilemaps with rows ending in commas crash neko

tilemaps created in tiled end the rows with a comma, which on neko causes an invalid array access error, this fixes that, although it could probably be done with regular expressions in a neater way, but I didn't want to change the code too much, hope this is helpful:),
Nico