fix archiving users

http://manage.dimagi.com/default.asp?140659
Merge pull request #4496 from dimagi/archive-user-fix

fix archiving users