Merge the regression fix from master to Revit2015

Fix for regressed test case language_functions_test_1.