[sr-dev] git:master:375d0146: presence: check for null head when reordering returned presentity list