Avoid using Chef::Exceptions::EnvironmentNotFound error in spec tests to properly support Chef <= 11.6.0