Fixed the bug on 171 from previous commit.

Should be able to add a product via the JS API and have it work for
logged in and guest users!