[BUGFIX] Prevent PHP Notice: Undefined index: scope_opener

Resolves: #49830