Yet another Course Info bug

Was silently failing if the course_info data in the db was malformed thus preventing Studio update from parsing it.

https://edx-wiki.atlassian.net/browse/STUD-544

@cahrens @singingwolfboy please review (line 80ff is just a change of indentation)