Fix long-missing DELETE EventLogs

This check has been wrong throughout the 4.4 series.
If this is the last element, then EventLogs should be
raised for every OriginalFile deleted. This has not
been happening. (Very sadly)

----

Commit from gh-638 that was intended to be rebased. There should be "DELETE" entries in the eventlog table after a successful delete.