Fix cookbook crash if a node has no roles

This fixes a failed chef run if a node doesn't have any roles yet.