fix(intervals): return 0 when measuring an empty intersection

Before, we returned false (which was casted to 0 when performing
calculations), and this logged a warning.

GitOrigin-RevId: 7aa2c89c879665450550f5846f8467ecdf9e21a3
diff --git a/src/inc/intervals.php b/src/inc/intervals.php
index 98061e9..33c4fc7 100644
--- a/src/inc/intervals.php
+++ b/src/inc/intervals.php
@@ -46,6 +46,8 @@
 
   // Return measure of the intersection
   public static function measureIntersection($a, $b) {
-    return self::measure(self::intersect($a, $b));
+    $intersection = self::intersect($a, $b);
+    if ($intersection === false) return 0;
+    return self::measure($intersection);
   }
 }