Only send hash query if req.opensubhash !== undefined