Panopto throws an undefined property error, hence not concatenating

$this->context->text as it has not been initialized.
This only happens if the moodle site has debugging on which displays PHP errors.