Minor optimization, since changing the viewer can be a complex process it should only be done if absolutely necessary.