Fix wrong use of moodle_url::out_as_local_url.