fixed the issue #78 - only write pubished_date when resource is indeed published