This line is giving you the error:
https://github.com/tomrus88/Blizzard...lates.lua#L221
Called here:
https://github.com/tomrus88/Blizzard...Plates.lua#L74
From here:
https://github.com/tomrus88/Blizzard...Plates.lua#L38
You manipulate a Blizzard global making all secure code accessing that global insecure. This results in an error in secure environment.
Btw ... that is an error from a taint right? (Interface action blocked etc...)
If it is a taint the error can come from anywhere.