I'm not convinced the defined track function is fixing what's described. If following Google's instruction for "installing" ga.js [0], there shouldn't be any sites breaking that block ga.js from loading. That is, Google suggests var _gaq = _gaq || []; at the start of the script installation. If ga.js never loads, _gaq is still an array and can be pushed onto to your heart's content. If you're concerned with an ever growing array of garbage, the suggestion in the comments is great:
__gaq = __gaq || {push: function(){return 0}}
[0] https://developers.google.com/analytics/devguides/collection...