Fixed lua errors when no pet teams are defined