Fixed an exception when opening a page whereas navigation is locked

Closes #114