Add minor null check
Basic authenticator does not send auth header, fixes #205