Update Factory.php

Use InputFilterManager only if there is a input filter type specified in the $inputFilterSpecification.

In case where we implements InputFilterProviderInterface in differents sub fieldsets, we get an error because the InputFilter is shared between fieldsets and all fields are in the same root of input filter.