Issue #2247933 by mkhamash | milos.kroulik: "Warning: Invalid argument supplied for foreach() in element_children()" after node editing.