[FIX] web: no switch_mode trigger if not switched

The switch mode event was triggered even if the view was not actually switched
This leaded to inconsistencies, like adding the view in the breadcrumb history, while the switch did not happen
Merge branch '7.0' of https://github.com/odoo/odoo into 7.0-linux64