Fixed NodeCollection#add() so now it always sorts the returned collection in document order
Added try-catch-finally to $.parseHTML()

This cleans up the context if it was switched in the function call and an error occurs.