That was stupid.
She should have wrapped the idol up with a rock, then thrown it overboard when the boat reached shore. Then retrieve it later, after showing everyone she was empty-handed.