Fix crash when calling hero:start_treasure() with wrong parameters

Fix #391.