fix #33; thanks @xiaochuang

In case select() returns a value < 0, then lastError will stay -1 and handle_http_request will not to be called anymore.
The first line swap was introduced in a backport from wifidog. See ca80cbbed57ac1ad765344c0d22dbc69f4acafd6.