Avoid undefined results when the parameter is out of range.