Get rid of 'null' items before it's passed to getUserPreference()