BUGFIX: HOME/END keyboard shortcuts on non-topic pages

This make sure both HOME/END keyboard shortcuts are only applied when viewing a topic