Fix bug where invalid Dart code will get erased when formatting