Check a DeleteItemCallback is set before accessing it. Fixes #105