[#976803] Ensure we only refresh on a logout if we were logged in and bo...

...wer update