[sr-dev] git:master:97b3ce7c: core: more safety checks for getting int values from cfg function params