Fixed #695: onGenerate() method in callback is not run for routes with a source