add some sanity checks in ContentAwareFactory
Merge pull request #116 from symfony-cmf/sanity-checks

add some sanity checks in ContentAwareFactory