fix issue with crash when adding post with blank content