Error for pkg'd apps without origin (bug 1109946)

@mstriemer r?
I'd prefer `location.href` over `location.toString()`.