Break after we find the right event.

Once we've found the event we're looking for, there's no need to keep looking!

This change shouldn't affect correctness.
Ensure the if (!NowTrans) will fire.
Add another assertion.
Print stack trace on analysis assertion failure.
Output a sensible error when NOW is missing.

Include a regression test.