Consider is_active column when fetching host and service statistics

fixes #6157