Get access to object before trying to use it

Fix issue where object was used before it was looked up with the
stevedore.