Fix id/class collection from stylesheets

BUG=438036
R=esprehn@chromium.org

Review URL: https://codereview.chromium.org/785313002