Bug 710974 - Convert to Color profile fails on images with layer groups

Handle layer groups recursively, and don't convert the group layer
itself.

(cherry picked from commit 424129cc60cc21bdea27785fbce6d2ed0908a936)