tests/events: don't crash when handling toc-entry events with a null title