fix div by zero problem if no rows are returned
adding some logging for debugging
Merge pull request #1591 from marcel-blonk/PLFM-3084

fix div by zero problem if no rows are returned