Hotfix: If user ratio is infinity this causes a crash

GSON can't set the number to the unicode character for infinity so parsing fails. This is fixed by taking the ratio as a string and then parsing it when getRatio is called for the first time. The result of the parse is then saved and used in future calls.
Merge branch 'hotfix-inf-ratio' into develop