fix segfault when piping to bti and user/password are not set