Create agent no longer passes agent credential if username and password are not supplied.