fix empty posts so they don't cause 500 errors