Stop accessing non-existing 'url' attribute.

Fix #536.