Fix asserts when trying to use standard AsmPrinter

It now doesn't produce anything useful, but doesn't crash.