Fixed bug with branching in Backbone.history.extension