list_patches: better handle case where no patches exist