Fix logic validation

Fix wrong validation that occasionally occurs when JCSDL was saved with advanced logic manual editor open.
Fixes https://github.com/datasift/editor/issues/51