FIX: Weird MATLAB crashes when testing class existence

For some unknown reason goo.get_cfg_class was causing occassional
MATLAB crashes. The root of the problem was testing whether certain
config class is defined. But I have not idea as of why this caused
MATLAB to crash sometimes.