Allow tp.params == null
Merge pull request #3010 from Atry/printer-fix

Allow tp.params == null