Fix NPE when label is null