Null check for tile

Should fix #661, though I'm not sure. Can be tested with this jar set: [Dropbox](https://www.dropbox.com/s/1t7wwlua8pc4r1u/ProjectRed-1.7.10-4.5.7.52-npe-fix.zip?dl=0)