Fixed InvalidKeyError on change enrollment.

LMS-11132

Implemented try except on SlashSeparatedCourseKey.from_deprecated_string in change enrollment to fix InvalidKeyError.

Added test for invalid course id.