CLC-2169 (QA) Handle invalid JSON from Canvas

https://jira.media.berkeley.edu/jira/browse/CLC-2169

QA branch version of #1279