Added a check for undefined _webGL.data for masks