web: Fix leave handler of networking page.

Closes #545

Reviewed-by: Stef Walter <stefw@redhat.com>