Guard against case that device['primary_user'] does not exist
(or is null).