[BZ 1114202] check for empty list when computing metrics and clean up type params