theano-Piecewise returns nan if no condition matches