Fixed bug caused by harvester performance improvement.

Also fix findbugs violations.
Merge branch 'develop' of github.com:geonetwork/core-geonetwork into merge-path-develop
fixes so that up to services tests pass