Fix: PHP Notice: Trying to get property of non-object

When purchase_link shortcode is used on a page where the download ID does not exist it throws a the following PHP notice:

`PHP Notice:  Trying to get property of non-object in /wp-content/plugins/easy-digital-downloads/includes/download-functions.php on line 25`