patch method should also catch IntegrityError
Merge pull request #160 from bjourne/fix-crash-on-patch

PATCH method should also catch IntegrityError