Added 999 priority to prevent wpseo_frontend_head_init running before another hook redirects the user on template_redirect.