handle a single policy being returned.
added array checking for the policy list response.
check that response->policies->policy exists before using it.
Merge pull request #3 from oodgaard/policy-response-fix

Policy response fix