lxc-template: Write rootfs config to container config file when the fallback kicks in

Fix GH-282
action/ip_from_dnsmasq: Handle nil container hwaddr value