Update Factory.php

Use InputFilterManager only if there is a input filter type specified in the $inputFilterSpecification