- Fixed crash in tls_read (unchecked null pointer)
- also check for empty string on username and password to launch authentication callback