Patch the cleaning of invalid users

Merged Flavio TARSETTI requested to merge 539_invalid_users_cleaning_django_cronjob_command into master

This patch avoids the crash of the cronjob during the cleanup of invalid profiles

This should be merged after !312 (merged)

Fixes #539

Merge request reports