detectWorkerTriggers() crashed with 'Cannot read properties of undefined (reading slice)' when called without text. Added null guard at function entry. Co-Authored-By: claude-flow <ruv@ruv.net>