Theano/Theano — pull request #1696 by lamblin (2014-01-13 21:31:14+00:00)
Title: Do not use arrays as conditions, explicitly test against None

This should fix the problem described in https://groups.google.com/d/topic/theano-users/Pse9P5B1a-U/discussion