Remove debug call from flowchart_viewmodel.js

Call to `debug.assertObjectValid()` causes JS error when creating new connection (when `debug` utility is not defined, which by default isn't).

I believe this call shouldn't be in production.

Please consider merging this, thanks!