Check for exceptions when rendering studio view.

        Otherwise it's possible to reach stuck states.
Check for exceptions in student view too