fix navigator: check page contains specified anchor before scroll