fix standalone by only calling model.unloadAll if defined
0.6.0-alpha25