Fixed hashcode & equals methods when null