Yeah, I have yet to find a fix for this. It's part of some new code I have added in for smart casting CD's, but I have it taken out for now. The way it is is I have it turn my target into npcID so that my data file will be universal and people don't have to edit it to their locale. But because of this, when the boss dies, for a few seconds, your still in combat and it wants to keep checking your target to see if it matches an ID on my table.
I'll get it figured out sooner or later. The best option I found for myself when I'm not trying to find a solution and just using the profile is to turn Display Lua Errors off.
I know there's a way to fix this, I just have to find the darn thing out
