Fix null pointer when setting the tileset of a new map.