Node: In getEntryForRegisteredPrefix, match the longest prefix (same as in NDN-CPP).