support empty block for xtemplate. Fixes #330.