fix Issue 10148 - unjustified 'safe function cannot call system function'