Just ran into a problem in TYPO3 where I couldn´t have any output from the sbmenu if there are no content. After some research I found this solution
lib.subMenu.entryLevel = 2
wrap = <ul id=subMenu>
required = 1
”required = 1” is the magic in this case.
PS, This works for all wrap typoscript