Fix hashing bug - if hashCode returns MinValue or if obj is null  npe (unobserved right now ?), it fails without this change