[master/cli] Fix NPE when deregistering a host that didn't exist

Also provide suggestions if what they asked for is a prefix of
hosts that do exist.