fix npe for not found resources and keep a list of non found