fix reassign cases 500 by checking if owner_id exists