Issue when updating from 0.22.1 to 17.9.2

Hi @barmac, Tried upgrading from 0 to 6 which was working fine. Since we need to deliver this immediately, trying each version will take time. So could you please help me to resolve the issue. I have already share the code and the error currently we are facing.
Please check the screenshot below
image
When debugged, getting the error 1. [Exception: Error: Tried to access di from the businessObject. The di is available through the diagram element only.