fix bug when setting tenant via connection.set_tenant to None (public schema)