added null check on subscription for group plans