Push gohai metadata

Handle case when gohai command fails

see https://github.com/DataDog/dogweb/pull/4569
cc @remh 
Using getattr and setattr seems a bit too complicated. As they are only 2 cases I would rather go with a more explicit way.

Or maybe just use dictionaries ?