prevent Type error when calling None in _checkBasicResponse
do not attempt a call to None
Merged in BoyanAlexandrov/cherrypy (pull request #42)

Issue with cherrypy.lib.auth.check_auth()
Do comparison in a single place
Factor out special case where encrypt is None
Adding documentation inferred from the implementation