Fix undefined values for wikidata config

CONTENT_MODEL_WIKIBASE_ITEM and CONTENT_MODEL_WIKIBASE_PROPERTY are not
necessarily defined at the point that the LocalSettings.php scripts are
being run.

Change-Id: I9e6ee6f15062920b9089fad68a34b2791c6ffbb5