several minor fixes for harvester.

* Fix delete history of a harvester when there are many many records (hundreds)
* Better error reporting when a operation doesn't exist