Avoid undefined index errors for Autodiscover requests.

Reported in Bug: 12727