Remove references to empty tiles, recompute size and bbox