MODE-1876 Corrected the logic that determines if indexes are empty

Because the JcrRepository is trying to determine if the indexes are empty after the system nodes have already been created, the query components have to determine when the indexes are first set up whether there is already content in the persisted indexes (e.g., the files on the directory).