red-brick. Check existence of progress dialog before updating it