Changed tileset retrieval to factor in GIDs of 0 (or lower).