OS-2198 fix TypeError on 'null' value for string parameters.