fix segfault when module path is null