[BUGFIX] Avoid PHP warning due to empty captions

A php warning is thrown if the caption for a media
item is empty. Avoid such warning in the examples.

Refs #33