Add null checks to _display_ methods

Replacement for https://github.com/playframework/twirl/pull/14