Optimized Metric::CiMixin#has_perf_data? method

https://bugzilla.redhat.com/show_bug.cgi?id=1086015

has_perf_data? method calls ActiveRecord exists? instead of
calling first_capture (which calls first_and_last_capture).