Fix output empty string when the undefined blocks are parsed