Fixed plugins crashing when there are no edges