make getDocumentState public

see for example the discussion in https://github.com/symfony-cmf/RoutingExtraBundle/pull/69