Ensure correct z-order.

Due to async calls, the zoom level might have changed during the time it
takes to download and render a tile.