fix NPE when artifact can  not be resolved