Fix unwanted line breaks on empty arrays/objects written by JSON indent writer.