Logs: Fix check for start time greater than end time