fixes #14 fixing bug that happens in safari when svg exists within the f...

...orm. checking if children exists on a node before digging into its children