checking registration thread is not null