Fixed bug #16994: ExtDirect in frontend generates php warnings (Thanks to Stefan...