TMDM-6845: Fixed the following:
1. The workflow object is deleted when update workflow version
2. Throwing NPE when update workflow version