fix key errors when retrying user pillow errors

http://manage.dimagi.com/default.asp?129796