color-device: Don't attempt to set GAMMA_LUT if LUT size is zero
This might happen on e.g. virtual machines. If we don't skip trying, we'll end up crashing because we'll fail to create a look up table since the size must be greater than zero to make any sense.
Fixes: baef39e6 Closes: #2415 (closed)