Merge pull request #1025 from webdetails/5.0

Cherry picks
Fixed cherry pick of https://github.com/pentaho/pentaho-platform/commit/72616e326648e369f20baddaa5aa142008c4f3f1
Errors on home.js
Merge branch '5.0' into 5.0-CE

# Via Diogo Mariano (1) and Pedro Vale (1)
* 5.0:
  Fixed cherry pick of https://github.com/pentaho/pentaho-platform/commit/72616e326648e369f20baddaa5aa142008c4f3f1 Errors on home.js