ECOM-759  if course is none return 404 error code.
Merge pull request #6323 from edx/awais786/ECOM-759

ECOM-759  if course is none return 404 error code.