Index: wp-includes/comment.php
===================================================================
--- wp-includes/comment.php	(revision 35808)
+++ wp-includes/comment.php	(working copy)
@@ -1904,7 +1904,7 @@
 	}
 
 	// Make sure that the comment post ID is valid (if specified).
-	if ( isset( $commentarr['comment_post_ID'] ) && ! get_post( $commentarr['comment_post_ID'] ) ) {
+	if ( ! empty( $commentarr['comment_post_ID'] ) && ! get_post( $commentarr['comment_post_ID'] ) ) {
 		return 0;
 	}
 
