fixed line 183 to avoid null exception

authorization.subscriptionURL was null, so used subscription.getId()