civetweb.c: check array limit before access array

Fix for:
[src/civetweb.c:2338]: (style) Array index 'i' is used before limits check.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>