FIX: prevents exception when clicking component title above ace editor (PR #9309)

The off event signature was different than the on event which is now forbidden and was causing an exception and layout failure.

GitHub