Implemented OpenmrsUtil.nullsafeequals for comparison