Check if unit is not null when processing syncMessage