[WebUI] Fix errors from rearranging code in 2294670
[#2082] [WebUI] [Console] Validate interface entry for IP address