Annotation search: handle non-existing annotations in constraint test