Fix crash when demoting offline user