Ensure rating is in correct range.
BUG: 559


git-svn-id: http://cantata.googlecode.com/svn/trunk@5548 b1e49159-3266-923f-9c3e-04f16369770a