Check for existing array before using key. Closes #3807

Conflicts:
	includes/wc-term-functions.php
Merge branch 'release-2-0-15' of https://github.com/woothemes/woocommerce into release-2-0-15
Merge remote-tracking branch 'woo/release-2-0-15' into release-2-0-15-tivnet