avoid NPE if the item from the preferences does not exist but return the default