Fixed getEntriesForDir() and getEntriesForType() not returning null for unknown items