CDRIVER-485: Invalid read on authentication failure

Closes #141