Fixes discussed in https://github.com/fb55/node-htmlparser/pull/28