[BZ-1119731] return null in legacy api when trying to retrieve the FactHandle for an object not present in the working memory