Fixes uncaught exception in memory plugin on IE6/7

The memory plugin uses document.getElementsByTagName in order to count
the number of certain types of DOM elements. It uses (function).call() to
do this. In IE6/7 the getElementsByTagName is not a typical function and
does not have call(). This patch wraps the underlying function in an
anonymous function when call() is missing.