Prevent and handle empty/blank tags