snippet: fix ajax loading stack overflow case

https://github.com/segmentio/analytics.js/issues/422

When a developer reloads the whole page using ajax
the snippet re-defines the real loaded analytics
then each method call will in return call .push() recursively

cc @calvinfo