Instead the [current doc](https://tes5edit.github.io/docs/13-Scripting-Functions.html) has the property `ContainingMainRecord` instead, please change to `GetContainingMainRecord`. Thanks.