Fix NPE when linked mod is not found