Added protection for label being null.