Fix case with no published content
Fix fail with pending status