Ensure styles are set even when reusing DOM.

This fixes the error found in review.