OO-1233 explicit undefined checks and window variable checks
Merge OpenOLAT 10.0 to OpenOLAT default with 203011740e76a884a9bd146f53d02afee35dc87e