Raise exception when name is nil or "" when initializing TBStateMachineEventHandler.
Update unit test.
Update documentation.