Check only objects and not null/array for the host. Related to #1577