Fix backwards compatibility in JS proxy initialization

BUG=None
R=hansmuller@chromium.org

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