Fixed error that prevented editing any media item without a createdAt property