Good catch. This is due to back porting a change from master. However the extra introduced conditional of
if (sig->version >=4)
will always evaluate to true. It is set a bit above and GnuPG does not handle public key packets with version 3 anymore. So this if can actually be removed. Thus no harm.