Fixed null pointer exception in getTile (not reproduceable error)