Fix exporting of LIFT when you add a Picture

Adding a picture puts in an empty caption, which was failing
when trying to replace newlines in a null string on export.

Change-Id: I2770aaa09e151d771dc1340d335ed01edf335c07