Add support to define block for empty dataset

It would be nice to have option to define {block #empty} which would be used in case of empty dataset.