fix failure from bad markup leaving an element behind. Closes gh-946
fix failure from bad markup leaving an element behind. Closes gh-946

rwaldron/jquery,eburgos/jquery,jquery/jquery,jquery/jquery,sancao2/jquery,sancao2/jquery,eburgos/jquery,diracdeltas/jquery,roytoo/jquery,diracdeltas/jquery,jcutrell/jquery,demetr84/Jquery,quiaro/request-agent,jquery/jquery,isaacs/jquery,Karyotyper/jquery,praveen9102/Shazam,eburgos/jquery,gnarf/jquery,RubyLouvre/jquery,isaacs/jquery,demetr84/Jquery,praveen9102/Shazam,roytoo/jquery,sancao2/jquery,Karyotyper/jquery,rwaldron/jquery,chitranshi/jquery,roytoo/jquery,chitranshi/jquery,gnarf/jquery,diracdeltas/jquery,jcutrell/jquery,Karyotyper/jquery,RubyLouvre/jquery