Fix nested CollectionInputFilter not valid if count not specified

Conflicts:
	tests/ZendTest/InputFilter/CollectionInputFilterTest.php
[#6412] CS fixes (trailing whitespace)
Merge branch 'hotfix/6412'

Close #6412