:bug: Fixed guest access code for sale #4442

Guest access code was created after sending email(confirming) for sale.
Infact access code should be created before sending email so that link
in email should also contain access_code for guest user.