Fix problem saving empty json messages.