Fixed JS error where `prototype_label` can be undefined.
Merge pull request #759 from boekkooi/patch-1

Fixed JS error where `prototype_label` can be undefined.