When a person is to be sentenced upon a conviction of the crime of criminal possession of a weapon in the fourth degree as defined in subdivision one of section 265.01 as a result of a plea of guilty entered in satisfaction of an indictment or count thereof charging the defendant with the class D violent felony offense of criminal possession of a weapon in the third degree as defined in subdivision four of section 265.02, the court must sentence the defendant in accordance with the provisions of section 70.15.