#1261: Prevent infinite loop in update hook.