Fix check for 0 in values
Merge pull request #1 from lamblin/fix_elemwise_perform

Fix check for 0 in values