Prevent a vector underrun in inventory display.

As reported by bugsniper on the forums: http://smf.cataclysmdda.com/index.php?topic=5516.msg791
Scrolling down with an empty inventory when in category mode causes a crash.  It was triggering a vector underrun in the category display code for inventory.