Fix gen_cert_report to use CourseKeys.
Merge pull request #3889 from edx/diana/fix-gen-cert

Fix gen_cert_report to use CourseKeys.