Simplify the nested ifs of Preprocessor_DOM::preprocessToObj()

Change-Id: Ibb91068678aca1729f00f1ba7844017771334e94