Fix course team JS to handle non-200 status codes

Fixing a broken acceptance test.