Validate context key provided to modX::initialize()

Fixes #11180
MODX Revolution 2.2.13-pl

* origin/hotfix-11180:
  Validate context key provided to modX::initialize()