Issue #2218999 by fietserwin: Fixed Warning: Invalid argument supplied for foreach() in element_children() (line 6420 of includes\common.inc).