Don't fail if setContentType is called with null