fixed possible segfault when tileHeader.numTiles == 0