Use newrelic only if it is defined.