Don't crash when removing an empty edge list

This patch was created to help unblock R 4.5.0 (where it avoids a crash in the test suite), but should be beneficial in both R 4.4.x and R 4.5.x.

Merge request reports

Loading