Fix async gap handling. (dart-lang/stack_trace#84) Fix an issue where an async gap at the end of a stack trace would not get parsed correctly due to the trailing newline being `trim()`'d. Add tests to cover this case.