Remove redunant check for pageDirectory

Jørgen Lind requested to merge feature/jorgen.lind/redundant_check into master

Merge request reports