Fix traceback for non-string values in lxc config files

Resolves #19055.
Merge pull request #19062 from terminalmage/issue19055

Fix traceback for non-string values in lxc config files