Add check for undefined configuration