No person is punishable for an omission to perform an act, where such act has been performed by another person acting in his behalf and competent by law to perform it.
(Enacted 1872.)