Revert "FIXED MAGE-3695: Database Media Storage doesn't export empty files to filesystem"

This reverts commit 3d6614295e259fe359eec83a61a43bd198128075.