Fix crash when trying to remove account without an accountType.