Fix bug where when using a response filter, requests where the response failed the filter were still written to the capture file
Fix invalid assert