Tweaks to certificate.latest method

I made a comment on commit f5b9ed9, and this is a PR that addresses it.