MultiSelectListPreference: Clean Whitespaces and add a fix for possible NPE