Restored acquia_agent_has_credentials() function.