Fixes #116: Bug with negative ratings on save

Also adds a test that repros the issue.

Test plan: Before fix, ran `make test` which failed. After fix, the test passed.
Merge pull request #120 from UWFlow/david-fix-negative-rating-bug

Fixes #116: Bug with negative ratings on save