Making media items a bit more bulletproof.