fix bug that returned more values on GetHistory aggregate none then wanted
fix bug that returned more values on GetHistory aggregate none then wanted

„count“ was not really checked there, so it was possible to return more
values as requested.

ioBroker/ioBroker.history