ratings: correctly handle unrated users in SQL
ratings: correctly handle unrated users in SQL

Otherwise, last_rating will be NULL in the query, and rating floors
and ceilings will not work. Using COALESCE fixes this.

DMOJ/site,DMOJ/site,DMOJ/site,DMOJ/site