Fix feature window hide

To fix https://github.com/camptocamp/cgxp/issues/326
To replace https://github.com/camptocamp/cgxp/pull/444