#17 use correct variable name in undefined check
Merge pull request #18 from okize/bug_displaying_empty_12_month_results

#17 use correct variable name in undefined check