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

len(n) crashes if n is not a list/tuple/etc