Useref should remove empty blocks.

Currently, useref replaces build blocks with a new tag even if the blocks are empty. This patch simply removes the build block altogether if it is empty.