Check if set to prevent error notice
wp_get_attachment_image_src() returns false on error, so catch that gracefully.
If the post_id isn't set, then we can't extract an image