Fix context lost handling in the buffer sizes test

The test didn't take the possibility of gl.CONTEXT_LOST_WEBGL error into
account.