CRM-12740 - use right variable name in empty check