Fixed nil access crash where self.tileInstances[gid] == nil.
Merge pull request #56 from Clean3d/master

Fixed nil access crash where self.tileInstances[gid] == nil.