[12652] Fix creature not stopping in some conditions.

Patch imported from TC, original author @Shauren

Fix cmangos/issues#229