assert_objects_equal: fix bug with comparison of null