T-API: prevent division by zero in case of unsupported double