Fix recording empty media. (because we cannot record an empty media).