Rerun console should save documents as it is done by Run console action.
(cherry picked from commit e2ba921)