Added missing return statement in case of a failing metric call