Updated code to add a check of undefined
Updated undefined check for collection support
Merge pull request #215 from PrimeRevenue/bug/undefined_issue_in_grid_collection_support

Updated code to add a check of undefined