bugfix in error_report.js

Signed-off-by: Umair Khan <omerjerk@gmail.com>
Fixing the if condition in get_report_data

Signed-off-by: Umair Khan <omerjerk@gmail.com>
Merge pull request #778 from omerjerk/QA_4_1

bugfix in error_report.js