Bug fix: some queries fail when global index has no range key