IE8 children.length fix

excludes comment nodes