Handle nil response object

This prevents some assertions being thrown in the credential if the responseObject is nil