Fix issue related to swapping conditions. The bug was making the swapping failing when production and staging were not both existing