[scr] Fix error when counting patchsets in a given changeset.