fix #3494: EC attributes disappear on refresh

The lazy loading of attributes appeared after they had been removed from
the database.