Some browsers return null instead of throwing Exceptions when creating webgl

This PR should handle these browsers better.