Any irregularity in the arraignment, including a failure to read the indictment, is waived if the defendant pleads to the indictment without objecting thereto. A failure to arraign the defendant or the fact that he did not plead, is waived if the defendant enters upon the trial without objecting thereto, and it shall be considered as if he had pleaded not guilty.