Consume until end of document if there is no newline when removing from (dart-lang/yaml_edit#76) block map. Fixes dart-lang/yaml_edit#55.