Fixed InvalidKeyError in course handler in studio.

LMS-11141

Implemented try except on ```CourseKey.from_string()``` in course handler to fix ```InvalidKeyError```.

Added test for invalid ```course_key_string```.
If the url has a course_key_string parameter should it not always be a valid one or we are at a wrong address?