fix: prevent duplicates when cookie cannot be set

When analytics.js is loaded inside an iframe in Safari 7 a cookie
cannot be set, this fix ensures that .anonymousId() returns null
Safari 7 disabled 3rd party cookies by default.
Merge pull request #407 from segmentio/prevent/duplicates

fix: prevent duplicates when cookie cannot be set