Bugfix for webgl error reporting