ZF-8057: Zend_Http_Client::setAuth should validate the URI when disabling authentication

Description

Disabling authentication by Zend_Http_Client::setAuth(false) before setting a URI results in a fatal error being raised due to the unchecked use of Zend_Http_Client::getUri() in lines 545 and 546.

Comments

Possible fix to ensure a valid Zend_Uri_Http in Zend_Http_Client::setAuth() before clearing authentication values.