Adjust for ChocolateChip-UI custom events.

Needed to adjust the test for presence of ChocolateChip-UI to avoid
throwing errors.