Fix the problem when an image is not located in the local docker image registry.

If such is a case, py-docker inspect_image method will throw an APIError instead of returning None.