Fix for when presence map does not yet exist.
Fix so templates work on the first go; fixes for starting with an empty config.