Fixed logic for returning multiple errors in toRawEvents and checking for a case where there is only failures