add oMM check to injectFramework

If the instance of the controller the framework gets from the bean factory is actually a proxy, for example when using aop, we need to check for onMissingMethod in injectFramework() to allow it to function correctly.