27491: Fix logic error for when to update setting