Before this PR, the chatbot script would hang when redirected to a page where the chatbot is not enabled. When such a scenario occurs, we should restore the chatbot's state to where it stopped, and the script should continue. This PR fixes this issue. task-3625853 closes odoo/odoo#161121 Signed-off-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>