getVar throws Exception is requested variable is not set unless the default is set, in which case it is returned instead.