Add null checks in ObjectHashCodeEqualsContract's constructor