Call Renderer.get_paths() before set_script_prefix

On typical Renderer implementations, get_paths() uses Django's URL reversing,
which is affected by the set_script_prefix() call, so ensure that's pre-cached
first.