fix(controller): check image for hostname

Older images may still have a hostname in the database. Checking if
it has a hostname in the image name ensures backwards compatibility.
Merge pull request #1538 from deis/check-hostname

fix(controller): check image for hostname