Fix bug DNN-4370: move RegisterFileUpload call to OnInit method.