Ensure $post exists. Closes #3514.