fix for issue #430. Inline image viewer clears previously set captions, if caption is empty