BZ-11778: Add validation on topics cache to fix issue showing empty droppdown