add some sanity checks in ContentAwareFactory

i think it makes sense to add these checks to help the user debug what is going on. if the behaviour is extended in an application, this will already have happened outside this class.