Fix issue with undefined inner element

For some reason this innerItem was undefined, thus there was no element. Unfortunately, if it was undefined the rest of the execution was stopped. This simply allows processing to continue.