Use a match rather than a for loop for last_loaded_url in ScriptTask::lo...

...ad.