Fixed bug where send error report not being called
Merge pull request #730 from m0hamed/error_report_fix

Fixed bug where send error report not being called