Resolves: fdo#79161 sidebar crash on deactivating

Change-Id: I0d559bd8c16243fdc398f6bff0aa915a83a29dff