Fix NPE when metrics is disabled

meh :/