fix compiler error returning a value from a void function
don't attempt SASL authentication without a connection

This lets the code fall through and fail with the same error as
a non-SASL connection failure.