dialog: backup and restore exiting route type when executing dialog event_route blocks

- reported by Nuno Miguel Reis