Fixed bug: Tag on an empty node didn't resolve in some cases.