added a better case to check for malformed loglines