Fix bug DNN-4093: if the folder mapping is null, return the default value.