Fix fatal error.

getMockForModel() was breaking as ClassRegistry is no longer seeded with
config data by the test suite. This method will need to be reworked in
the future.