fix previous commit of #5017 to use const_reverse_iterator on const object.
fix previous commit of #5017 to use const_reverse_iterator on const object.

neurodebian/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,htcondor/htcondor,neurodebian/htcondor,neurodebian/htcondor,htcondor/htcondor,htcondor/htcondor,neurodebian/htcondor,neurodebian/htcondor,neurodebian/htcondor,neurodebian/htcondor,neurodebian/htcondor,neurodebian/htcondor