bug fix.

when a default url could not be fetched, the default resource id was accessed which is 0 in this case. This led to a crash.