Test for #1699 fix (error when searching for non-existent tag)