Added handling of validation errors in PUT-as-create.

Fixes #1035.