bz#977314 fix for check-in's not found when there are older and newer checkins than the specified date range