fixes ZEN-13108, avoid mutating local variable when callin InspectContainer because it can set out local variable to nil when an error ocurrs
Merge pull request #771 from control-center/feature/ZEN-13108

fixes ZEN-13108, avoid mutating local variable when callin InspectContai...