Fix traceback on ratings listing page (bug 873875)