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

This reverts commit c86c8d3fba41f23a4843237900411737c2b8af82.