Made a small fix for a bug that caused the parser to crash on some sites, it can now parse http://www.nature.com/nature/journal/v467/n7315/full/467531a.html and the bug probably affected some others too.
All of your tests still pass.
Also please only use the second commit, I didn't know I had to make a new branch for each pull request I want to make (somewhat new to git) :)
ctrl+A tab, lines looked way too long on my screen :)
sometimes the prevElement doesn't exist
Patch was applied a while back. Forgot to update this ticket (pvt msgs were sent though).