avoid publishing empty posts (fixes #4401)

invalidate empty posts when created by a local user

add changelog entry