KRACOEUS-8019 fixed NPE when PI does not have a home unit
Merge pull request #824 from jhulslander/KRACOEUS-8019-leadUnitIssue

KRACOEUS-8019 fixed NPE when PI does not have a home unit