Fix bug in rating system.

Caused posting comments multiple times if the user added a comment and then
rated the release or used one of the other reporting functions after adding the comment.
Merge remote-tracking branch 'upstream/0.7.x' into 0.7.x