Fix infinite loop error when a CRTC does not support gamma ramps

Signed-off-by: Mattias Andrée <maandree@operamail.com>