Use HEAD instead of GET to validate API key

See this WordPress thread for more details - https://wordpress.org/support/topic/a-http-error-occurred-when-validating-the-api-error-code-502-bad-gateway