Fix compilation crash in mrg on the GPU.
Merge pull request #2004 from nouiz/crash_mrg

[CRASH] Fix compilation crash in mrg on the GPU.