soaked up getEntries undefined

Added ?., operator to getEntries to fix an annoying error when no files
are open