Patched the "woocommerce_downloadable_product_permissions" function to avoid fatal error if return value for get_product_from_item is false.
Merge pull request #3024 from crowdfavorite/patch-downloadable-product-permissions-function

Patched the "woocommerce_downloadable_product_permissions"