Fix previous nnimap header fetching change

* lisp/gnus/nnimap.el (nnimap-retrieve-headers): Ensure that the
splitting works.
10 jobs for master in 352 minutes and 15 seconds (queued for 53 seconds)
Status Job ID Name Coverage
  Build Images
passed #48118
build-image-inotify

02:36:18

 
  Normal
passed #48119
test-all-inotify

00:41:32

 
  Platform Images
passed #48120
build-image-filenotify-gio

02:40:37

passed #48121
build-image-gnustep

00:42:35

 
  Platforms
passed #48122
test-filenotify-gio

00:15:13

passed #48123
test-gnustep

00:01:52

 
  Native Comp Images
passed #48124
build-native-comp-speed0

05:20:46

passed #48125
build-native-comp-speed1

04:03:23

passed #48126
build-native-comp-speed2

04:06:00

 
  Native Comp
passed #48127
test-native-comp-speed0

00:30:53