Be lenient when rebuilding cases

From what I can tell, this is the main cause of http://manage.dimagi.com/default.asp?123037. I'm also adding logging in there so I can get more information about _why_ it happens, so I can fix any more underlying cause.