fixed #1816 bug of getTileGIDAt in TileMap module