[BUG #8593] Don't rely on widgets in the templates module