! fix crash in X-Preferences API; return NULL if not found.