Fix a crash when a non-existant nginx config is attempted to be removed, Update the lost logic