hideIfEmpty was not used for anything, so v:tag without content was not rendered. Now it works as expected.