UIPreprocessor: fix bug with null defaultUI