[#438] simplified a bit the code parsing the tileset properties

thanks Jason for pointing this out ;P