Add assertions to http_server_poll()

This might help discover the cause of the "runaway http_server_poll"
bug sometimes observed in Batphone