Fix empty email-in topic when post creation fails

(Includes changes from https://github.com/discourse/discourse/pull/2701)