Add more guards to newrelic recipe