Update captiveportal.inc

Recently I noticed that the pineno was jumping too much and never returned to the initial number, looking for what I found to change with is_null never returned T when its value was 0. Not yet back to 2000 when you restart the server, I'm looking for the possible error.