readdate: Fix traceback when nothing is consumed from the input text

(0) -10 -1 +1 tip

mercurial