Failsafe for when get_the_terms() returns false. Closes #3147

Thanks @arminrosu!