Fix MAGN-3799 Revit 2015 crash switching documents.