When the coefficients are 0, the resulting cost for l1 and l2 weight decay
could return a float64 instead of a float32, when floatX=float32.

Signed-off-by: Axel Davy <axel.davy@ens.fr>