Protect against empty origins.
Small fix.