Fix a reference to undefined variable in NodesController

If a role parameter was specified for the index action, the ```@groups```
would be undefined and sort called on nil in nodes/index.html.haml