flex/http: make request handler state checking assert()-based