REACH-55 Simple code block fails to resolve in UI

This PR solves bug "REACH-56 Code blocks crash DynamoWebServer on refresh" as well.

Any CBN has `inputs`, `outputs` and `codeBlock.PortIndexes` are `undefined` when it is just created. That's why CBN is marked as updated right after creating and the Flood sends to the Dynamo empty value to update CBN. The Dynamo delete CBN (it doesn't allow empty CBN) and then nothing happens after updating value in the Flood