Added support for %%tag%% even if the ID is empty.
Related #1111