Fix handling of last entity in file in recovery mode (no final ",")