[CSharpBinding] Fixed null reference in pathed document extension.