Check that value in leaf node is non-null before checking that attributes of the value are equal to the searched attributes.