fix #538
validate time restrictions data produces ice_cube rule, fixes #549
bugfix for JSONAPI get all entities/contacts with empty db