fix undefined dom in .reject()

`dom` was undefined at lib/traverse.js:222.