Fixed bug getting last array item as string in areas widget (refs #418)