Check for NS* constants first before using.

Check for NS* constants first before updating
$wgVisualEditorNamespaces.