cipher: fix memory leak.
* cipher/pubkey.c (gcry_pk_sign): Handle the specific case of ECC, where there is NULL whichi is not the sentinel.
This is a kind of makeshift fix, but the MPI array API is internal
only and will be removed, it is better not to change API now.