Workaround for buggy error messages
diff --git a/lib/Korap/Plugin/KorapSearch.pm b/lib/Korap/Plugin/KorapSearch.pm
index 46b6195..0ad520e 100644
--- a/lib/Korap/Plugin/KorapSearch.pm
+++ b/lib/Korap/Plugin/KorapSearch.pm
@@ -214,6 +214,8 @@
 	};
 
 	if ($json->{warning}) {
+	  # Temp
+	  $json->{warning} =~ s/;\s+null$//;
 	  $c->notify(warn => $json->{warning});
 	};
 
@@ -285,12 +287,16 @@
 
   if ($json) {
     if ($json->{error}) {
+      # Temp
+      $json->{error} =~ s/;\s+null$//;
       $c->notify(error => $json->{error});
       return;
     }
 
     # New error messages
     elsif ($json->{errstr}) {
+      # Temp
+      $json->{errstr} =~ s/;\s+null$//;
       $c->notify(error => $json->{errstr});
       return;
     }