Remove debug statement, fix bug

I wrote an incorrect thing to pull non-executable code when there is an
embedded template statement. It should work now.