When the intent with which, the mode in or the means by which an act is done is essential to the commission of the offense and such offense may be committed with different intents, in different modes or by different means, if the jury is satisfied that the act was committed with one of the intents, in one of the modes or by either of the means charged, it is sufficient; and the jury must convict, although uncertain as to which of the intents charged existed, in which mode or by which of the means charged such act was committed.