Fix the bug of changing the type of endEventType.

 When using the designer to change the EndEventType, the expected element will not appear. According to the source code, the feature of creating EndEvent was not add to the Map.