Error handling if there are no datapoints. This happens when you have just created a goal.