Don't search tags when the expression is unprefixed. Some performance improvements and defensive code.