Crash fix: Switch to top frame when parent frame is reloaded