Fix potential error in ratings API if called without a current_version