cylc gui: fix pure-families graph view

#1185 introduced a bug where the cylc gui graph view displayed nothing
in grouped mode if all nodes were families. This is due to the node ids
being checked just against the task summary.

@arjclark, please review.