Modified MapEngine::removeStackedTiles.