Fix segfault when output filter data is null and set http status code