Fixed a minor bug that could cause JS errors when the rating field is cleared.