Fixed warning in toast view helper