stringComparator: handle missing model attributes

When model attributes are not present on every model in the grid's collection, sorting fails on the first try.  This commit resolves this error so sorting works from the first click regardless of attribute presence.