Cleanup exploit prevention method.
Don't try to find a treasure if there aren't any.

Fixes #1572