Fixed potential lua error when team members are missing their petid