Changed wpseo_frontend_head_init hook from wp to template_redirect to prevent canonical redirect issues.

Fixes #859.

Info: 0bfedf81a7de6133e61046cace4d799371e1a14e