Ignore errors from getXXXPref.

Basically they never raise errors because invalid (undefined) preference is determined as the PREF_INVALID type.
However, it raises error with the combination: having user value, without default value, getting on the default branch.