[Python-checkins] Consistently move the misses update to just before the user function call (GH-11715)