Fixed JS error where `prototype_label` can be undefined.