Fix exception inside lxc
Merge pull request #15315 from basepi/bp-15089

Backport #15089 to 2014.7