Fix test TestEventsDefaultEmpty. Fixes #14360 Upstream-commit: 10bbf62081ac85b17a93d79ba43eec43bebe468c Component: engine