Fix bug introduced from previous commit

I was not accounting for how the list of models have leading spaces so it would
fail to find the class.
Better error message for devs on malformed meta-data