Fixed error when trying to set focus history on prohibitted pages