Fix bug when trying to open undefined folder before initial sync
[WO-656] fix logout in chrome app