Failsafe for when get_the_terms() returns false

As committed on master branch:
- https://github.com/woothemes/woocommerce/commit/7d9d1ee2f03430b9af8d0e48e4fec136398a13ba