title: aws cli returns an extra 'None' when fetching the first element using --query parameter and with --output text
body: <p>I am getting an extra <code>None</code> in aws-cli (version 1.11.160) with --query parameter and --output text when fetching the first element of the query output. </p>
  
  <p>See the examples below. </p>
  
  <p><code>
  $ aws kms list-aliases --query "Aliases[?contains(AliasName,'alias/foo')].TargetKeyId|[0]" --output text
  a3a1f9d8-a4de-4d0e-803e-137d633df24a
  None
  </code>
  <code>
  $ aws kms list-aliases --query "Aliases[?contains(AliasName,'alias/foo-bar')].TargetKeyId|[0]" --output text
  None
  None
  </code></p>
  
  <p>As far as I know this was working till yesterday but from today onwards this extra <code>None</code> comes in and killing our ansible tasks. </p>
  
  <p>Anyone experienced anything similar? </p>
  
  <p>Thanks</p>