make sure we don't crash if generate is pushed when no model loaded.