If the defendant has been heard on a motion for a new trial, or in arrest of judgment, and in all cases of misdemeanor, the requirements of section 546.570 shall be deemed directory, and the omission to comply with it shall not invalidate the judgment or sentence of the court.
§ 546.580, RSMo