added a check to see if the "manufacturer" attribute even exists, since it can be deleted by the admin