`wp_head` is actually too late as the `<title>` may have already been echoed... A very late hook on `template_redirect` is a better solution. Related to #817.
Merge branch 'master' of https://github.com/Yoast/wordpress-seo