Fill markets id cache only if there is no error