(a) Except as provided in subdivision (b), the sentencing court shall not authorize the commencement of the presentence investigation until there has been a finding of guilt.
(b) The sentencing court may authorize the commencement of the presentence investigation prior to finding of guilt if:
(1) the defendant has consented to such action; and
(2) nothing disclosed by the presentence investigation comes to the attention of the prosecution, the court, or the jury prior to an adjudication of guilt. Upon motion of the defense and prosecution, the court may examine the presentence investigation prior to the entry of a plea.