Fixes nil error when trying to view an unpublished blog post.

It should no longer throw an error when published_at is nil.