Fixed mediaFolder and sourceFolder to accept empty string on Core