If the patch set number was missing, the text "null" was appearing in
the URL rather than "" as was intended. This change addresses that and
also drops the trailing "/" if patch set is missing (which should be
considered equivalent by Gerrit)
If the patch set number was missing, the text "null" was appearing in
the URL rather than "" as was intended. This change addresses that and
also drops the trailing "/" if patch set is missing (which should be
considered equivalent by Gerrit)