Fix handling invalid models when PUTting

Issue #21

Only attempt to use the `ret` parameter if there is no `err`.

Also updated the example blogpost model to include a validation, and a test where that validation fails.