Handle errors thrown by getContextWebGL.

Seems to happen in Firefox on Sauce. Possibly Sauce/headless specific,
but worth catching anyways.