Fixes #4045, fail log importer if we cannot match a format to the first line of the logfile.