function_hooks: add some calls to __unnullify_path()