Nit: it'd be useful to add the bad content-type to this debug message, passing it from *_ensureInstallable* into this function.