Only add to inventory if host was found or created.

This fixes #1.