added check for nans in input data, which can happen if coming from timelock with var trl lengths), which is converted to raw by ft_checkdata