Allow hostname/ip to be deleted if the captive portal is not enabled
(cherry picked from commit cc52daa63deb98f6fbcd5edbc24fc65b62eabbec)
Allow hostname/ip to be deleted if the captive portal is not enabled
(cherry picked from commit cc52daa63deb98f6fbcd5edbc24fc65b62eabbec)