Fixed bug when media reference does not exist in S3