Resolved inconsistency

The check in the if condition uses the variable '$Self->{ObjectData}->{Object}', which should be used in this line, too.