Validate context key provided to modX::initialize()

Fixes #11180

(cherry picked from commit 11a913feda16c99703dbf4d27328af888e698c5c)

Conflicts:
	core/docs/changelog.txt