check globalcustomerid for null and undefined in widget