Hide caption when text is empty

Hide caption when text is empty