CONN-517:Fix Script for EntityDocQuery