auto pickup rules window: check for empty vector before accessing items.

Switching to the input manager made some checks (for the current page to be non-empty) disappear. They are now back.

Fixes #7378 (the crash, not the other thing).