Range check against undefined

Check range.lower/range.upper !== undefined, rather than truthiness, as e.g. 0 may be specified as a valid range bound. Currently in axemclion/master, this would result in the bound not being applied.