Check if the metric reults are empty.
Merge the changes from the gsoc14 branch.