Fixes #6412: Trying to remove a DHCP record fails due to an invalid subnet check