Fix metrics tasks to warn when the gem dependency is not available