Don't crash when searching for invalid tag. Fixes #1097