Fixed crash for unimplemented elemwise gradient

This bug was reported by Michael McNeil Forbes on the mailing-list.
PEP8
Improved test
Merge pull request #1326 from delallea/notimplemented_elemwise_grad

 Fixed crash for unimplemented elemwise gradient