Improved autoeditor backtracking.

Changed ...

    if self._session.is_backtracking:
        ...

... to ...

    if self._session.is_backtracking or result is None:
        ...

where appropriate.