Minor modification to set_fact with_items patch

Previous patch was reverted due to the fact that there was an issue
with the results not always being a dictionary (they're sometimes
a unicode string, ie. when the with_items is used with yum). This
minor change corrects that by checking for a dict object.
digital_ocean #3438: use get instead of [] to prevent KeyError

The existing code was using:
  a[b][c[d]]
where a[b] would always exist and c[d] would always exist.
But the nested index would not alway exist, particularly when a DigitalOcean item disapeared.

This changes that nested index to a `get` and properly handles None results.

This bug was present in two spots in this file.
Fix traceback when openstack do not have OS-EXT-IPS:type attached to address

    failed: [127.0.0.1] => {"failed": true, "parsed": false}
    invalid output was: Traceback (most recent call last):
      File "/tmp/ansible-1376083321.99-111209413777779/nova_compute", line 1176, in <module>
        main()
      File "/tmp/ansible-1376083321.99-111209413777779/nova_compute", line 239, in main
        _get_server_state(module, nova)
      File "/tmp/ansible-1376083321.99-111209413777779/nova_compute", line 198, in _get_server_state
        private = [ x['addr'] for x in getattr(server, 'addresses').itervalues().next() if x['OS-EXT-IPS:type'] == 'fixed']
    KeyError: 'OS-EXT-IPS:type'

This extension was added less than 6 month ago, and so cannot be used on a release
older than Grizzly ( like Folsom ).

Commit of the extension : https://review.openstack.org/#/c/21453/

See https://wiki.openstack.org/wiki/ReleaseNotes/Grizzly#Key_New_Features_2
Fix to better handle concurrent runs of module against same pool
Introduced ansible-rsync to core.
Fixed identity key logic.
Straighten out local-remote-delegate logic in rsync action module. Force set delegate to local if one is not defined.
Implemented setup method in rsync action module.
implemented 'inventory_file' variable. Closes GH-3789.
Construct the multiprocessing manager only once.
Merge branch 'feature/gh-3789-inventory-file' of https://github.com/resmo/ansible into devel
Merge pull request #3809 from mscherer/fix_openstack_folsom

Fix traceback when openstack do not have OS-EXT-IPS:type attached to add...
Merge pull request #3805 from lwade/docs

Modified playbooks2.rst to include conditional boolean example.
fix an encoding bug in copy content = lookup plugin

closes #3518
Remove some test prints
Merge pull request #3806 from neomantra/issue_3438_x

digital_ocean #3438: use get instead of [] to prevent KeyError
support i18n on sudo failure
Merge branch 'devel' of git://github.com/hura/ansible into devel
Smite tabs in whitespace.
Misc style fixes.