Fixes TypeError when removing nodes without ids that aren't selected