issue #3626: The None value that the scriptname_from_native function return will lead to unknown errors