Fixed a crash when tmx-map not have any tiles.

* Fixed a crash when tmx-map not have any tiles.
* Fixed a batch-mode draw when sprite not have a textureAtlas.