Only set dispatcher if there is one to set.