Fix calls to non-existing functions

generateUrl is deprecated so we should properly fix this some day.
However, this is an improvement over the current situation where non-existing
methods are called.

Change-Id: Ia66c38d65d50f963a63548b70a752cc724195e70