Fix SSH_AGENT_PID check if set -u is enabled.