Crash fix: Switch to top frame when parent frame is reloaded
Fixes #10947 #11103 #11984