Bail out of pickup action if we haven't selected any items to pick up.

Fixes #9653.