load-graph: fix out-of-bounds error
When built with the gnome-build-meta hardening flags, gnome-system-monitor crashes when switching to the resources tab. This fixes it.
When built with the gnome-build-meta hardening flags, gnome-system-monitor crashes when switching to the resources tab. This fixes it.