[BZ 1081554] - Cannot load metrics error on a resource with no enabled metrics - Not performing the problematic DB query, when no metric on the resource is enabled. Also saving 2 (client-server)) round trips if the enabled metrics # equals to zero.