Fix bad assumptions in frontend error handling code in view
Change-Id: Ie807eb84c39f0f1285de126f71c96fa325c93907