Fixed crash when environment map is missing