[BUG #7086] Add debug and info messages if an appearance id cannot be resolved.
This is mostly the case if nested child controls are used. Plus minor code cleanup.