avoid publishing empty posts (fixes #4401)

for now this is the fix for the frontend/gui
but this problem should also be handled on the backend/model...