skip inserting caption if it is empty