Yes, it's cleaner to do that. It isn't necessary for "correct" functionality since it's cleared when any command or event is registered, and a domain that has no commands and no events doesn't really need to be in the API.

Anyway, fixed. Good catch.