Fix minor syntax errors and documentation typos in event manager.
Add AssertIsValidEvent helper function in event manager.