fix getInlineContainer when no anonymous block exists yet