Update TileLayer.lua

Sprite batch crash fix