fix undefined dom in .reject()

dom is undefined at lib/traverse.js:222
Merge pull request #74 from lvivier/patch-1

fix undefined dom in .reject()