pypi.loader: Fix edge case about revision_get
revision_get can return None revision if it's not found