Fix as suggested [here](https://github.com/Yoast/wordpress-seo/pull/513) by @raugfer for 404 when pagination base has been changed.
Closes #513