Fix the case when section is empty after removing filters from it
Keep iterating profiles even when not used
Added tests for fixed #141