Incomplete items-on-graph-widget removal fix.

Caused SIGILL/SIGSEGV if nodes/relations were deleted in dataController not throw GUI.