Fix regressions

This pull request fix regressed test cases ``DynamoCoreUITests.RecordedTestsDSEngine.Defect_MAGN_2563`` and 
``DynamoCoreUITests.RecordedTestsDSEngine.Defect_MAGN_4710``