fixes issue when firsttime > lasttime, releated to: https://github.com/csirtgadgets/massive-octo-spice/issues/85