diff --git a/webif/html/browse/epgtitle.jim b/webif/html/browse/epgtitle.jim
index 7cdfbcd..fb99306 100755
--- a/webif/html/browse/epgtitle.jim
+++ b/webif/html/browse/epgtitle.jim
@@ -9,6 +9,7 @@ httpheader "application/json"
set file [cgi_get file]
if {$file == 0} exit
set ts [ts fetch $file]
+if {$ts == 0} exit
puts "{"
puts "\"title\" : \"[jescape [$ts get title]]\","