Fix a bug that affected the 'emailreports' module, sending the emails without any graph