Add guard clause that prevents nginx from reloading if the configuration is in a bad state
So we can prevent cases like this: https://gitlab.com/gitlab-com/infrastructure/issues/1694
So we can prevent cases like this: https://gitlab.com/gitlab-com/infrastructure/issues/1694