Convert nil titles into empty strings; don't crash

Fixes #2947