Hmm, I've just scanned through this, but it seems this gets the concept of stochastic gradient descent (SGD) completely wrong.
The nice part of SGD is that you can backpropagate even functions that are not differentiable.
This is totally missed here.