Validate and not set nodeData when no nodes
Closes #232 (closed) When there are no nodes we do not need to set nodeData that triggers the "undefined data" bug. Also validation helps avoid not opening a workflow while the user has no information about the reason.
Edited by Giannis Koumoutsos