fixed another npe in hasBookmark
worked around concurrent modification exception