Change DirectoryEntry::IsDirectoryEmpty() to return nsresult for error handling.