Added a nil check for mtw.container in do_loot()

This will prevent the system from spamming get gold coins when the
container variable is nil.