Fix crash by handling wrong input for Color Range

Fixes http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-2476