Fix crash when bond tenor length is 0