Don't try to get back() of empty vector in LootManager

Fixes #1207