Issue #2313487: fix case where purchaser has already purchased course