title: Internal server error when I try to get product name $product->get_name()
body: <p>I get a Internal server error when I try to get product name with the following code : </p>
  
  <pre><code>// I get product ID from the database in the $product_id variable
  
  $product_factory = new WC_Product_Factory();
  $product         = $product_factory -&gt;get_product($product_id);
  </code></pre>
  
  <p>I get this error : </p>
  
  <blockquote>
    <p>"PHP Fatal error:  Uncaught Error: Call to a member function
    get_name() on boolean in ..."</p>
  </blockquote>