Made sure that a child element exists before the check is done, fixes jQuery bug #3870.
Made sure that a child element exists before the check is done, fixes jQuery bug #3870.

git-svn-id: a6f3e0ffc78e78789c45711e92f8046af3fcb362@6135 c715fcbe-d12f-0410-84c4-316a508785bb

dantman/4query,dantman/4query