Okay... one last test (hopefully).
If you uncomment those two lines, and also replace the handleScriptLoaderTag and handleStyleLoaderTag methods farther down that file (approx line #223) with this:
public function handleScriptLoaderTag($tag, $handle, $src)
{
if (is_string($src)...