Fixed detection of subreddit for link

Should fix issue [#1921](https://github.com/honestbleeps/Reddit-Enhancement-Suite/issues/1921).

There might be a better solution, though.