msi: Improve error checking when applying transform data.