fix attribute being added twice in rlm_cache

We already found the first matching attribute so set cursor.found to the previously found attribute if it is null