Merge pull request #2072 from 9rnsr/fix10148

[REG2.063a] Issue 10148 - unjustified 'safe function cannot call system function'