fix show tiles

this piece of code broke if we had tiles coming from a tpk in our indexeddb