libt2n: (tomj) make result_container's has_exception and has_result a bit more robust