Fixed rating logic: Previous rating logic could cause e.g. Leap.app
to crash; fixed.