Fixed a logic error in the web test monitor script.