resolved plugin failing to run if ['docs']['count'] doesn't exist under ['indices']