Leaky ReLU numerical stability improvement

Just found out that the previous version #740  (despite the small difference) could have caused numerical problems in the examples.