Fixed a crash defect in "ColorRange.SetupCustomUIElements" method

Merge [changes](https://github.com/DynamoDS/Dynamo/pull/2526) that went into ```master``` into ```Revit2015``` branch.