Better checking of namespace

We're aiming to get this into release-238 for release tomorrow. This PR is to dev, which will then be cherry-picked into the release branch.

https://wikia-inc.atlassian.net/browse/VE-1397
It seem that CreatePage.requestDialog could be called just in "else" to this "if" statement - that way there would be no need to use variable showDialog... or I'm missing something.