added check for matrix singularity in GlobalbedoLevel3UpscaleBrdf