Check if $post is valid on the_content filters