[#189] Fixes issue adding new nodes just after new cascade
[#189] Code improvement based on @jonase feedback
Merge pull request #950 from akvo/issue/189-fix-add-node

[#189] Fixes issue adding new nodes just after new cascade