[RFC][ResourceBundle] Don't set flash message when calling via API

Next step on the route: remove calling session if not required.