Handle not-found errors from the get request
Handle not-found errors from the get request

The following ensures that we correctly trap the not found exceptions
from the get request. If no resources are found, the API returns not
found, returning an empty resource object should be fine in this case.

Additionally, fix the urlencoding for channels.

juju/python-libjuju,juju/python-libjuju