Show whole search time range on result histogram

If no data is available, we add a point at the beginning and end of the
time range. Fixes #807.