protect the current json file from being wiped out if the incoming data stream is empty