[MaNGOS/WotLK] Fix LuaUnit::HasUnitState

Signed-off-by: Salja <salja8840@gmail.com>