Workaround for the fact that detecting the content type sometimes fails.