Fix: If a wrong root element is returned a misleading Debug message was returned

Change-Id: Ic1730b3fa03de7b3eb2656e8bee2bdb6a0a48ecf