Remove invalid assertion in writeJsonBody. Fixes #788.