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.