Fix bug DNN-3777: when there is no module in array just return null.