I am trying to run the "Check if two users are related" rule and I am getting the following error messages:

Notice: Trying to get property of non-object in user_relationships_rules_condition_users_are_related() (line 213 of /var/www/public_html/domain.com/sites/all/modules/user_relationships/user_relationships_rules/user_relationships_rules.rules.inc).
Notice: Undefined property: RulesCondition::$uid in user_relationships_rules_condition_users_are_related() (line 213 of /var/www/public_html/domain.com/sites/all/modules/user_relationships/user_relationships_rules/user_relationships_rules.rules.inc).
Notice: Trying to get property of non-object in user_relationships_type_get_name() (line 1069 of /var/www/public_html/domain.com/sites/all/modules/user_relationships/user_relationships.module).

It seems to be because the $user2 being passed isn't actually the second user, but rather the relationship object?