Fix LHM #9948: Fix PHP error for undefined key in applicationGeneric

- applicationGeneric: Fix PHP error for undefined key
- applicationGeneric: Remove duplication
- Fix gotoLogoffScript