gpg: fix key listing in GnuPG 1.x

In GnuPG 1.x when listing keys with ``--with-colons'' the first
``pub'' line also contains ``uid'' info, but this scenario is not
handled resulting in the first uid being missed.  Check for ``uid''
information in both ``uid'' and ``pub'' lines to resolve this issue.