fix `undefined`s when a relative URL can not be resolved

https://github.com/component/component/issues/499#issuecomment-39289681
1.0.2