Red nodes aren't affecting result
Those nodes are red because they are muted, which is a means of disabling a node temporarily. M toggles the selected nodes muted/unmuted.

Grouping in your file works fine for me, so I'm guessing you pressed M accidentally while pressing CtrlG. 

To fix, just select the muted nodes and press M again.