Filter onlyDetection elements when computing the reference score