Fix top frame reloads after navigation targets a named frame (#11671)