output logging: trim title to fit into one line.
Defensive coding for when caption is undefined