[BUGFIX] Fixed choosing of inaccessible root template

Fixed that Tx_Fluidcontent_Service_ConfigurationService->writeCachedConfigurationIfMissing() choose root templates that are deleted or otherwise inaccessible.