protect against returning null values from PrefixInTree