Fixed bug in executeOnKeys where the backup operation fails if the entry
is removed.