I remember having such an error, however the circunstances and how I fixed it are long gone... It's a runtime error, at least, or otherwise the mod's compiler would have picked up on it. See which rules are being run at the very start of the mission, the bug is most likely there.