Fix $postid variable from throwing a PHP notice and interrupting the AJAX request