fix a crash in electrum get_new_address if n is not a list