Added check for 'undefined'

This should fix the issue with "China's largest export" query.