Fix parser crash after detection of first log