Fixed up-down propagation of containsActiveDocument.