Fix an issue relating to when no sentinels exist

The tasks below would error out if no sentinel groups exist. This fixes it.