Bug 52310: Disallow empty JSON blocks

This patch prevents users from saving an empty JSON block, either
using the book editor, or by adding "{}" in the edit box without
the editor enabled.

Bug: 52310
Change-Id: Ia602d4900278b305e0fce5fb384516b8fcc86277
Merge "Bug 52310: Disallow empty JSON blocks"