Fix illegal behavior when specific global variable does not exist.