Fix bug that was preventing boolean fields from being indexed correctly in ES.