Better gateway handling in edd_send_to_success_page()