Fix Azure stacktrace when ssh_agent isn't present

Closes #16074