[SP-1497] Backport of PRD-5209 - Report Preprocessor demo report does not work using BSFReportPreProcessor (5.2)

Simple cherry-pick of merged request https://github.com/pentaho/pentaho-reporting/pull/510
@tmorgner Thomas, please review