catch and log IllegalCaseId, but accept form

fixes http://manage.dimagi.com/default.asp?147015

respond with 201, save form as XFormError

this is basically pre-atomic form submissions behavior
except that there is no chance of some of the cases getting processed
but not others
Pulled this out so I could call it where I catch the exception