diff --git a/preprocessor/Statement.cc b/preprocessor/Statement.cc
index 70889c6b2e53b1bb7c001f085e333fe9e49ba5d6..b72e4e24d89496c079cd4d59efa5f527de4dc81f 100644
--- a/preprocessor/Statement.cc
+++ b/preprocessor/Statement.cc
@@ -135,7 +135,11 @@ OptionsList::writeOutput(ostream &output) const
 void
 OptionsList::writeOutput(ostream &output, const string &option_group) const
 {
-  output << option_group << " = struct();" << endl;
+  // Initialize option_group as an empty struct iff the field does not exist!
+  unsigned idx = option_group.find_last_of(".");
+  output << "if ~isfield(" << option_group.substr(0,idx) << ",'" << option_group.substr(idx+1) << "')" << endl;
+  output << "    " << option_group << " = struct();" << endl;
+  output << "end" << endl;
 
   for (num_options_t::const_iterator it = num_options.begin();
        it != num_options.end(); it++)