(Bug 4855) Get the first non-DOOO entry when importing

Getting the latest entry via the protocol gives us the latest entry
according to eventtime (user-provided time) rather than logtime.
Sometimse this could be a DOOO entry, which then means that everything
after that DOOO entry will not be imported. So let's try to find the
first non-DOOO entry, as that will be the latest according to logtime.
Merge pull request #249 from afuna/import-dooo-first-entry-bug4855

(Bug 4855) Get the first non-DOOO entry when importing