Fix handling of pending/suspended tabs