Make sure prefs always is a valid array (otherwise causes fatal errors if language if not set)