Fixes #3781, make sure getUserPreference returns valid default value when option is not set in the DB.