A delete_item() error should use FERROR_XFER.
Fixes bug 10024.
Fix a typo that Stefan Beller pointed out.