allow to return null in the FactoryInterface methods

this makes sense when the routes are dynamic

see https://github.com/symfony-cmf/MenuBundle/pull/37