legacy log file search returns now correct section header

fixes the problem where a query for an entry in legacy log files with multiple entries per day shows in response the correct entry but with the wrong section header/timestamp.
part of ticket 1109081