Throw exception when a unknown variable is used