Fix a PHP notice when translation term does not exist

The translation term does not always exist, so we need to check first before echoing a property.