bugfix for JSONAPI get all entities/contacts with empty db