Fix crash in OpenedFileCounter::ensureMaxOpenFileLimit()

The crash happens if PieceStorage and/or DiskAdaptor are not
initialized in one of active RequestGroups.