[BUGFIX] Test the details_json during creation

You have to run this SQL to fix the DB:

```sql
UPDATE users SET details_json = '{}' WHERE details_json IS NULL OR details_json = '';
```