Consolidate the code that handles empty responses
Consolidate the code that handles empty responses

Move the code that handles empty responses from the AWS API into a
single function.

brkt/brkt-cli,brkt/brkt-cli