Handled empty relation.

Change-Id: I011af24126be19c02a938296bcc9405f793d94c9
diff --git a/src/main/java/de/ids_mannheim/korap/query/wrap/SpanRelationWrapper.java b/src/main/java/de/ids_mannheim/korap/query/wrap/SpanRelationWrapper.java
index 9748ed3..1f1c799 100644
--- a/src/main/java/de/ids_mannheim/korap/query/wrap/SpanRelationWrapper.java
+++ b/src/main/java/de/ids_mannheim/korap/query/wrap/SpanRelationWrapper.java
@@ -24,6 +24,11 @@
         else
             return;
 
+        if (relationQuery.isEmpty) {
+            this.isEmpty = true;
+            return;
+        }
+
         this.subQuery1 = operand1;
         this.subQuery2 = operand2;
     }
@@ -31,7 +36,7 @@
     @Override
     public SpanQuery toQuery() throws QueryException {
 
-        if (this.isNull()) {
+        if (this.isNull() || this.isEmpty()) {
             return null;
         }