Ensure we don't get an NPE when getting the value of a preference

git-svn-id: https://svn.apache.org/repos/asf/wookie/trunk@1566367 13f79535-47bb-0310-9956-ffa450edef68