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
4.1.0-rc3

Signed-off-by: Marc Delisle <marc@infomarc.info>
Merge commit 'dd3fef8'
Merge commit 'd67204c'