Fixing NPE if metric does not exist.