Correct the place of execution of the edd_before_download_content action. Closes #2398