Fixed equality comparison for nil object pointers