Throw an error if scheme of hosted asset is unexpected