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