Fixes #6412: Trying to remove a DHCP record fails due to an invalid subn...

...et check