If no data is found, the storeText commands returns #LNF instead of text. As an example, see this web extraction macro.
storeText
#LNF