Adapt to htmltools 0.2.1 API