[Hotfix] Fixed log message in case characters ranking is low
[Hotfix] Added check for valid value from script variables