fix post edit for empty content

Signed-off-by: YC Huang <yingchauhuang@gmail.com>