do not set caption if title attribute is empty string