Prevent creation of set when no nodes or edges have been selected.