I edited the code again to fix the query opening on the wrong connection.
When there is an error or something wrong happens, the global variables %notlistservcount and %notlistcount are not unset correctly, this makes the next attempts moot, makes sure to unset the two variables from the variables tab in the editor before trying.
How many status window do you have? Which one is connected? How many nick do you have in notify list per server?