Adds null argument checks to an assembly