Fix bug DNN-5307: request scripts in OnInit method.