Permissions fix when the query does not return anything.

Ran into a strange issue when playing out with permissions. The page had area-specific exclude permissions after which I set exclude permissions to that page as well. After this the page threw an exception and did not let me in.

This seemed to happen because the query on top of the changes made returned false. I don't know exactly what caused this issue.