cleanup code and fix problem with manually change from tx_rating_data (FORGE id 53206)

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/ratings/trunk@81109 735d13b6-9817-0410-8766-e36946ffe9aa