Correct strict standards error and initialize $app

display() method not compatible with JViewLegacy
$app object never initialized, causing fatal error
Tracker #33278