Prevent errors on content preview.