Fixes #7939

If the function ``` intersection ``` returns an empty list ```inter```, the function ```is_tangent``` will return False as required.