fixes #14 fixing bug that happens in safari when svg exists within the form. checking if children exists on a node before digging into its children