fix CUDA cvtColor after corresponding change in CPU version

see https://github.com/Itseez/opencv/pull/3137
Merge pull request #3143 from jet47:cuda-cvt-color-fix