fixes misbehavior when a non-existing project ID is selected

fixes exception if integer parameter does not type check

(0) -100 -30 -10 -2 +2 +10 +30 +100 tip

mercurial