fix #651: handle deleted users.

Add missing fix for PR #652