remove nonexistent $post_id from get_permalink()