rebase: do not crash rebasing merge with a parent having hidden successor
The added test will crash with previous code.
Differential Revision: https://phab.mercurial-scm.org/D640
#require docutils gettext $ $TESTDIR/check-gendoc ru checking for parse errors