I was having the same problem, so I just fixed it, and sent a pull request to the original author. In the meantime, if you don't want to wait for the author, you can just use the temporary extension I published:
https://github.com/guiambros/HNMarkAllRead
https://chrome.google.com/webstore/detail/hacker-news-mark-a...