Index: src/wp-includes/embed.php
===================================================================
--- src/wp-includes/embed.php	(revision 37713)
+++ src/wp-includes/embed.php	(working copy)
@@ -1100,6 +1100,10 @@
 	/** This filter is documented in wp-includes/class-wp-oembed-controller.php */
 	$post_id = apply_filters( 'oembed_request_post_id', $post_id, $url );
 
+	if ( ! $post_id ) {
+		return $result;
+	}
+
 	$width = isset( $args['width'] ) ? $args['width'] : 0;
 
 	$data = get_oembed_response_data( $post_id, $width );
