Fix notice that occurs from external function call

Resolves https://github.com/woothemes/woocommerce/issues/5506.

This checks to see if the `integrations` array has any values before getting it's current value.
Merge pull request #5508 from lukecarbis/issue-5506

Fix notice that occurs from external function call