fix if/else/while construct with single function (v 3.11.3)

* fix error with empty tag

Change-Id: I2ea4a8ce32a84ac90d5b831c8e11711c39fee1ad