Not sure if this extension is still working. I'm using MW 1.28
Topic on Extension talk:HideEmptySections/Flow
Appearance
I'm not sure thats correct (programming etiquette) but, after some research in php-libs (parser.php, title.php) - trying change $mPrefixedText by getPrefixedText() and extension work!
MW 1.28.2