Correctly handle pending/unloaded tabs