fix for STANBOL-891: The hashCode() method now checks if optional fields are NULL

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