Throw validation error if origin changes (bug 892731)

Test added.