Fixes case where emplid would be set instead of id