basis.event: fix optimization warning in dev mode