Fixes #964 JavaScript bug when post edits requires moderation.

#964