Check if ->term_enc returns something before use