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