Fixed error in DependencyInjector that couldn't access private ViewModel instances due to a refectoring in commit 63dac4dab4