Fix ticket #1216. This method used to use getByIndex() which returns null if the index is not found.
Fix ticket #1216. This method used to use getByIndex() which returns null if the index is not found.

svn commit r19210

silverorange/swat,silverorange/swat