VE-1476 Adjust focus mode after template is rerendered

This "if" condition did end up being needed. Without it, some unit tests failed where a surface has no focus widget.