Added null check to subscriptions for loop